package com.cmc.cloud.cmclink.doc.api.document.req.so;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import java.util.List;

/**
 * @author lzp
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class EqmInfoSearchReqDto {

    @Schema(description = "提单号")
    @NotEmpty(message = "提单号不允许为空")
    private List<String> blNos;

    @Schema(description = "装货港编码")
    private String polCode;

    @Schema(description = "船名代码")
    @Length(max = 50, message = "船名代码支持最大长度{max}")
    private String vesselCode;

    @Schema(description = "出口航次")
    @Length(max = 50, message = "出口航次支持最大长度{max}")
    private String voyageEx;

    @Schema(description = "卸货港编码")
    private String podCode;

    @Schema(description = "进口航次")
    @Length(max = 50, message = "出口航次支持最大长度{max}")
    private String voyageIm;

}
